package cn.cvs.service;

import cn.cvs.pojo.Supplier;

import java.util.List;

/**
 * @Auther: zwt
 * @Date: 2021/11/14 - 11 - 14 - 18:18
 * @Description: cn.cvs.service
 * @version: 1.0
 */
public interface SysSupplierService {

    //根据供应商编码和供应商名称查询
    List<Supplier> queryChoose(String supCode, String supName);

    //条件分页查询 supCode + supName
    List<Supplier>  querySupplier(String supCode, String supName, Integer pageNo, Integer pageSize);

    //参与条件分页的总记录数
    int queryCount(String supCode,String supName);

    //增加
    int addSupplier(Supplier supplier);

    //依据编号查询供应商
    Supplier queryById(Integer id);

    //修改供应商
    int updateSupplier(Supplier supplier);

    //删除
    int delete(Integer id);
}
